import pickle
d = dict(name='json', age=10, score = 80)
print(d)

# f = open("dump.txt", "wb")
# pickle.dump(d, f)
# f.close()

# f = open("dump.txt", "rb")
# d2 = pickle.load(f)
# f.close()
# print("d2:", d2)

import json

d_json = json.dumps(d)
print("json:", d_json)